<?php

namespace app\common\model;

/**
 * [GoodsGroupPerson  拼团出行人表]
 * @author [C。]
 * @return html
 */
class GoodsGroupPerson extends Base
{
    protected $name = 'goods_group_person';
    /**
     * 根据搜索条件获取列表信息
     */
    public function getList($map, $from = 0, $size = 5, $field = '*')
    {
        $join = [
            ['app_member m','m.id = gp.memid'],
        ];
        $result = $this->field($field)
            ->alias('gp')
            ->join($join)
            ->where($map)
            ->limit($from, $size)
            ->select();

        return $result;
    }
}